package com.twu.biblioteca.category;

import com.twu.biblioteca.library.Catalogue;
import com.twu.biblioteca.book.Books;
import com.twu.biblioteca.movie.Movies;
import com.twu.biblioteca.user.User;

/**
 * Created by Enrico on 19/09/2014.
 */
public class Category {

    private Catalogue catalogue;

    public Category(Catalogue catalogue) {
        this.catalogue = catalogue;
    }

    public void books(User user) {
        Books books = new Books(catalogue);
        books.transaction(user);
    }

    public void movies(User user) {
        Movies movies = new Movies(catalogue);
        movies.transaction(user);
    }
}
